package com.cai.common.result;

import lombok.Getter;

@Getter
public enum StatusCode {
    SUCCESS(200, "OK"),
    FAIL(400, "FAIL"),
    INPUT_ERROR(500, "INPUT_ERROR"),
    ERROR_UNAUTHORIZED(600, "ERROR_UNAUTHORIZED");

    private final Integer code;
    private final String message;

    StatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
